package com.biz.primus.commodity.enums;


import com.biz.primus.base.enums.vendor.VendorType;

/**
 * @author yanweijin
 * @date 2017/6/17
 */
public enum ProductType {

	TYPE_A,
	TYPE_B,



	;

	public static ProductType valueOfVendorType(VendorType vendorType){
		if(vendorType == VendorType.TYPE_A){
			return TYPE_A;
		}else if(vendorType == VendorType.TYPE_B){
			return TYPE_B;
		}else{
			throw new IllegalArgumentException("没有映射到productType");
		}
	}

}
